package Action;

import PO.ServePage;
import com.epwk.action.Action;
import com.epwk.action.JSExecutor;
import org.openqa.selenium.By;

/**
 * Created by Administrator on 2016/11/25.
 */
public class Serve {

    public static void serve(int[] serve) {

//        int[] serve = {0};
        By by = null;
        for (int i = 0; i < serve.length; i++) {
            switch (serve[i]) {
                case 0:
                    Action.click(ServePage.all);
                    break;
                case 1:
                    Action.click(ServePage.ding);
                    break;
                case 2:
                    Action.click(ServePage.ji);
                    break;
                case 3:
                    Action.click(ServePage.ping);
                    break;
                case 4:
                    Action.click(ServePage.yin);
                    break;
                case 5:
                    Action.click(ServePage.ban);
                    break;
                case 6:
                    Action.click(ServePage.wei);
                    break;
            }

        }
    }

}
